﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditSeoConfig.aspx.cs" Inherits="NJL.WebManage.SeoConfig.EditSeoConfig" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
    <script type="text/javascript" src="/scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript">
        function check() {

            if ($.trim($('#<%=txtTitle.ClientID %>').val()).length < 1) {
                alert('栏目名称必须填写');
                return false;
            }
            if ($.trim($('#<%=txtSeoTitle.ClientID %>').val()).length < 1) {
                alert('Meta标题必须填写');
                return false;
            }
            if ($.trim($('#<%=txtSeoKeywords.ClientID %>').val()).length < 1) {
                alert('Meta关键词必须填写');
                return false;
            }
            if ($.trim($('#<%=txtSeoDescription.ClientID %>').val()).length < 1) {
                alert('Meta描述必须填写');
                return false;
            }
            if ($.trim($('#<%=txtSeoDescription.ClientID %>').val()).length > 200) {
                alert('Meta描述内容长度不能超过200个字');
                return false;
            }

            return true;
        }  
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div class="gray_bd">
        <div class="table_title">
            栏目SEO设置管理-编辑栏目SEO设置</div>
        <div class="pad5px">
            <table align="center" cellspacing="0" style="width: 100%">
                <tr>
                    <td style="width: 120px; text-align: right;">
                        栏目名称：
                    </td>
                    <td>
                        <asp:TextBox ID="txtTitle" runat="server" Width="400px" MaxLength="25"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px; text-align: right;">
                        地区：
                    </td>
                    <td>
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:DropDownList ID="ddlProvince" runat="server" OnSelectedIndexChanged="ddlProvince_SelectedIndexChanged"
                                    AutoPostBack="True">
                                </asp:DropDownList>
                                &nbsp;
                                <asp:DropDownList ID="ddlCity" runat="server">
                                </asp:DropDownList>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px; text-align: right;">
                        Meta标题：
                    </td>
                    <td>
                        <asp:TextBox ID="txtSeoTitle" runat="server" Width="100%" MaxLength="100"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px; text-align: right;">
                        Meta关键词：
                    </td>
                    <td>
                        <asp:TextBox ID="txtSeoKeywords" runat="server" Width="100%" MaxLength="100"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td style="width: 120px; text-align: right;">
                        Meta描述：
                    </td>
                    <td>
                        <asp:TextBox ID="txtSeoDescription" TextMode="MultiLine" runat="server" Width="100%" MaxLength="200" Height="60px"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" Style="height: 21px"
                            Text="提交" Width="40px" OnClientClick="return check()" />
                        &nbsp;<input id="Reset1" type="reset" value="返回" onclick="window.location.href='ManageSeoConfig.aspx'" />
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
